package com.qububu.play.common.dto;

import com.qububu.common.user.dto.UserInfoDto.Sex;
import com.qububu.utils.SystemUtil;

public class ArticleAuthor {

	private String authorId;
	
	private String authorName;
	
	private Sex sex;
	
	private String userLogoUrl;
	
	private String positionId;

	public ArticleAuthor(String authorId, String positionId) {
		this.authorId = authorId;
		this.positionId = positionId;
	}
	
	public ArticleAuthor(long authorId, long positionId) {
		this.authorId = SystemUtil.encrypt(String.valueOf(authorId));
		this.positionId = SystemUtil.encrypt(String.valueOf(positionId));
	}
	
	public String getAuthorId() {
		return authorId;
	}

	public String getAuthorName() {
		return authorName;
	}

	public void setAuthorName(String authorName) {
		this.authorName = authorName;
	}

	public Sex getSex() {
		return sex;
	}

	public void setSex(Sex sex) {
		this.sex = sex;
	}

	public String getUserLogoUrl() {
		return userLogoUrl;
	}

	public void setUserLogoUrl(String userLogoUrl) {
		this.userLogoUrl = userLogoUrl;
	}

	public String getPositionId() {
		return positionId;
	}
}
